package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分记录对象 integral
 * 
 * @author ruoyi
 * @date 2019-10-16
 */
public class Integral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 积分值 */
    @Excel(name = "积分值")
    private Integer integralCount;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String reason;

    /** 类型（0-其他，1-邀请，2-提现，3-活动） */
    @Excel(name = "类型", readConverterExp = "0=-其他，1-邀请，2-提现，3-活动")
    private Integer type;

    /** 业务员id */
    private Long memberId;

    @Excel(name = "业务员")
    private String memberName;

    /** 下级业务员id */
    private Long memberCid;

    @Excel(name = "子业务员")
    private String memberCName;

    /** 客户id */
    private Long customerId;

    @Excel(name = "客户")
    private String customerName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIntegralCount(Integer integralCount) 
    {
        this.integralCount = integralCount;
    }

    public Integer getIntegralCount() 
    {
        return integralCount;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setMemberCid(Long memberCid) 
    {
        this.memberCid = memberCid;
    }

    public Long getMemberCid() 
    {
        return memberCid;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public String getMemberName()
    {
        return memberName;
    }

    public void setMemberName(String memberName){this.memberName = memberName;}
    public String getMemberCName()
    {
        return memberCName;
    }

    public void setMemberCName(String memberCName){this.memberCName = memberCName;}
    public String getCustomerName()
    {
        return customerName;
    }

    public void setCustomerName(String customerName){this.customerName = customerName;}

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("integralCount", getIntegralCount())
            .append("reason", getReason())
            .append("type", getType())
            .append("memberId", getMemberId())
            .append("memberCid", getMemberCid())
            .append("customerId", getCustomerId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
